###############################
# ANALYSIS: SETUP AND GLOBALS 
# 
# Part of replication of:
# Traditional Institutions in Africa, Past and Present
#
# Political Science Research and Methods
#
# By Clara Neupert-Wentz and Carl Müller-Crepon, 2023
#
##########################################


# GLOBAL DECISIONS ############

# Traditional institutions
tradinst.pca.vars <- c(
  ## Political centralization
  "tni_level_ord", "leader_max",
  # Functional differentiation
  "inst_mean","leader_mean", "func_mean", "ties_mean"
  )


# PATHS #######################
fig.path <-  file.path("results/figures")
tab.path <-  file.path("results/tables")

# SEED ########################
set.seed(1)

# LIBRARIES ###################
library(lfe)
library(stargazer)
library(car)
library(ggplot2)
library(plyr)
library(dplyr)

# FUNCTIONS ###################

## Analysis helper functions (in particular stargazer)
source(file.path("scripts/analysis_helperfunctions.R"))








